package org.example.pojo;

public class Student extends User {
    private String date = null;
    private Classes classes = null;

    public Student() { }

    public Student(int account, String password, String name, String email, String telenumber, String joindate, String date, Classes classes) {
        super(account, password, name, email, telenumber, joindate);
        this.date = date;
        this.classes = classes;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public Classes getClasses() {
        return classes;
    }

    public void setClasses(Classes classes) {
        this.classes = classes;
    }

    @Override
    public String toString() {
        return "Student{" +
                "date='" + date + '\'' +
                ", classes=" + classes +
                "} " + super.toString();
    }
}
